package com.madou.dbtool.redis.manager;

/**
 * Redis节点信息
 */
public class RedisNodeInfo {
    // 注释
    String ip;
    // 注释
    String comment;
    // 端口
    int port;
    // 角色
    String role;
    // 插槽
    String solt;
    // 管理插件
    RedisSourceManager redisSourceManager;

    @Override
    public String toString() {
        return "RedisNodeInfo{" +
                "ip='" + ip + '\'' +
                ", comment='" + comment + '\'' +
                ", port='" + port + '\'' +
                ", role='" + role + '\'' +
                ", solt='" + solt + '\'' +
                '}';
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getSolt() {
        return solt;
    }

    public void setSolt(String solt) {
        this.solt = solt;
    }

    public RedisSourceManager getRedisSourceManager() {
        return redisSourceManager;
    }

    public void setRedisSourceManager(RedisSourceManager redisSourceManager) {
        this.redisSourceManager = redisSourceManager;
    }
}
